package edu.sdwu.liqing.qasystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import edu.sdwu.liqing.qasystem.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 问题表 
 * </p>
 *
 * @author liqing@sdwu.edu
 * @since 2020-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="QaQuestion对象", description="问题表 ")
public class QaQuestion extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "问题标题")
    private String title;

    @ApiModelProperty(value = "问题内容")
    private String content;

    @ApiModelProperty(value = "回答数")
    private Integer answerNum;

    @ApiModelProperty(value = "是否已解决")
    private Boolean solved;

    @ApiModelProperty(value = "模块id")
    private String moduleId;

    @ApiModelProperty(value = "角色可见")
    private String roleVisible;

    public QaQuestion() {
        this.answerNum = 0;
    }


    @TableField(exist = false)
    private String createdName;

    @TableField(exist = false)
    private String moduleName;

    @TableField(exist = false)
    private Boolean canOperate;


}
